﻿using CID.Domain.Audit;
using CID.Domain.Development;
using CID.Domain.Infrastructure;

namespace CID.Domain.Persistence.Mappings.Audit
{
    public class VersionDeploymentLogMap : EntityMap<VersionDeploymentLog>
    {
        public VersionDeploymentLogMap() : base() 
        {
            References<ReleaseDeploymentLog>(x => x.ReleaseDeploymentLog);
            References<Version>(x => x.Version);
            References<ActivationTemplate>(x => x.ActivationTemplate);
            References<DeactivationTemplate>(x => x.DeactivationTemplate);
            References<DeploymentTemplate>(x => x.DeploymentTemplate);
            HasMany<ParameterDeploymentLog>(x => x.Parameters);

        }
    }
}
